<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>调查问卷问题管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/wechat/question/">调查问卷问题列表</a></li>
	</ul>
	<tags:message content="${message}"/>	
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr><th>竞选人姓名</th><th>竞选人照片</th><th>操作</th></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="question">
			<tr>
				<td><a href="${ctx}/wechat/question/form?id=${question.id}">${question.voterName}</a></td>
				<td><img src="${ctxUser }/questionnaire/${question.showPic }" style="width:300px;height:100px"/></td>
			<td>
    				<a class="btn btn-success" href="${ctx}/wechat/question/form?questionnaireId=${question.questionnaire.id}&id=${question.id}">修改</a>
					<a class="btn btn-danger" href="${ctx}/wechat/question/delete?id=${question.id}" onclick="return confirmx('确认要删除该调查问卷问题吗？', this.href)">删除</a>
				</td>
				
			</tr>
		</c:forEach>
		
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
